﻿@model TGBTech.Core.Models.ChungTu.CTChungTu

@{
    ViewBag.Title = "Create";
}


<div class="col-md-6">
    <div class="portlet box blue">
        <div class="portlet-title">
            <div class="caption">
                Thêm tài khoản
            </div>
            <div class="tools">
                <a href="" class="collapse"></a>
                <a href="" class="reload"></a>
            </div>
        </div>
        <div class="portlet-body">
            @using (Html.BeginForm())
            {
                @Html.AntiForgeryToken()

                <div class="form-horizontal">
                    @Html.ValidationSummary(true)


                    <div class="form-group">
                        <label class="col-md-3 control-label">Số CT</label>
                        <div class="col-md-7">
                            @Html.DropDownList("ChungTuId", null, new { @class = "form-control select2me" })
                            @Html.ValidationMessageFor(model => model.ChungTuId)
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label">Người giao dịch</label>
                        <div class="col-md-9">
                            @Html.TextBoxFor(model => model.NguoiGiaoDich, new { @class = "form-control", placeholder = "Người giao dịch" })
                            @Html.ValidationMessageFor(model => model.NguoiGiaoDich)
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label">Kho</label>
                        <div class="col-md-9">
                            @Html.TextBoxFor(model => model.Kho, new { @class = "form-control", placeholder = "Kho" })
                            @Html.ValidationMessageFor(model => model.Kho)
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label">Địa điểm</label>
                        <div class="col-md-9">
                            @Html.TextBoxFor(model => model.DiaDiem, new { @class = "form-control", placeholder = "Địa điểm" })
                            @Html.ValidationMessageFor(model => model.DiaDiem)
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label">Hàng hóa</label>
                        <div class="col-md-7">
                            @Html.DropDownList("ChiTietHangHoaId", null, new { @class = "form-control select2me" })
                            @Html.ValidationMessageFor(model => model.ChiTietHangHoaId)
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label">Số lượng</label>
                        <div class="col-md-9">
                            @Html.TextBoxFor(model => model.SoLuong, new { @class = "form-control", placeholder = "Số lượng" })
                            @Html.ValidationMessageFor(model => model.SoLuong)
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label">Đơn giá</label>
                        <div class="col-md-9">
                            @Html.TextBoxFor(model => model.DonGia, new { @class = "form-control", placeholder = "Đơn giá" })
                            @Html.ValidationMessageFor(model => model.DonGia)
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label">VAT</label>
                        <div class="col-md-9">
                            @Html.TextBoxFor(model => model.VAT, new { @class = "form-control", placeholder = "VAT" })
                            @Html.ValidationMessageFor(model => model.VAT)
                        </div>
                    </div>


                    <div class="form-group">
                        <div class="col-md-offset-3 col-md-9">
                            @Html.ActionLink("Trở về", "Index", null, new { @class = "btn default" })
                            <input type="submit" value="Thêm" class="btn blue" />
                        </div>
                    </div>
                </div>
            }
        </div>
    </div>
</div>